<template>
  <div class="flex-col page section">
    <div class="flex-col">
      <c-title :hide="false" text="汇款"></c-title>
    </div>
    <div class="flex-col group1">
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">公司名称</div>
        <div class="flex-row items-center">
          <span class="title">{{ corporate_name }}</span>
          <span class="copy-btn" v-clipboard:copy="corporate_name" v-clipboard:success="onCopy">复制</span>
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">开户行</div>
        <div class="flex-row items-center">
          <span class="title">{{ openingBank }}</span>
          <span class="copy-btn" v-clipboard:copy="openingBank" v-clipboard:success="onCopy">复制</span>
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">支行</div>
        <div class="flex-row items-center">
          <span class="title">{{ subBranch }}</span>
          <span class="copy-btn" v-clipboard:copy="subBranch" v-clipboard:success="onCopy">复制</span>
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">银行账号</div>
        <div class="flex-row items-center">
          <span class="title">{{ bankAccountNumber }}</span>
          <span class="copy-btn" v-clipboard:copy="bankAccountNumber" v-clipboard:success="onCopy">复制</span>
        </div>
      </div>
    </div>
    <div class="flex-col group1 mt-1">
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">汇款银行</div>
        <div class="flex-row items-center">
          <input class="input-class" type="text" v-model="remittingBank" placeholder="请填写转出银行名称" />
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">汇款账号</div>
        <div class="flex-row items-center">
          <input class="input-class" type="text" v-model="RemittanceAccount" placeholder="请填写转出银行账号" />
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div class="title">付款人</div>
        <div class="flex-row items-center">
          <input class="input-class" type="text" v-model="payer" placeholder="请填写付款人姓名" />
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-center">
        <div>付款金额</div>
        <div class="flex-row items-center">
          <input class="input-class" type="number" v-model="PaymentAmount" placeholder="请填写付款金额" />
        </div>
      </div>
      <div class="gp1-item flex-row justify-between items-start">
        <div class="title">付款凭证</div>
        <van-uploader :after-read="onRead" name="0" :multiple="false">
          <div v-if="paymentvoucher == ''" class="flex-col items-center justify-center ping-zheng">
            <img class="add-photo" src="../images/add-photo.png" alt="" srcset="" />
            <span class="add-photo-text">上传图片</span>
          </div>
          <img v-else class="ping-zheng-img" :src="paymentvoucher"  width="72" alt="" srcset="" />
        </van-uploader>
      </div>
    </div>
    <div class="bottom">
      <div class="bottom-btn" @click="submit">提交审核</div>
      <div class="bottom-btn2" @click="toBack">返回</div>
    </div>
  </div>
</template>
        
<script>
import moneyTransferController from "./moneyTransferController";
export default moneyTransferController;
</script>
<style>
body {
  background-color: #f5f5f5;
}
#app {
  background-color: #f5f5f5;
}
</style>
        
<style lang="scss" rel="stylesheet/scss" scoped>
::v-deep .van-nav-bar {
  border-bottom: none !important;
  background: #f5f5f5 !important;
}
::v-deep .van-button--default {
  background: none !important;
}
::v-deep .van-nav-bar__title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #151515 !important;
}
@import "../../../assets/css/commoncss/common.css";
.mt-1 {
  margin-top: 1rem;
}
.group1 {
  background: #fff;
  padding: 0 1rem;
}
.gp1-item {
  // height: 3rem;
  padding: 0.8rem 0;
  border-bottom: 0.1rem solid #efefef;
}
.gp1-item:last-child {
  border-bottom: none;
}
.copy-btn {
  width: 2.2rem;
  height: 1rem;
  text-align: center;
  line-height: 1rem;
  border: 0.04rem solid #333;
  font-size: 0.7rem;
  border-radius: 0.1rem;
  margin-left: 0.5rem;
}
.input-class {
  border: none;
  text-align: right;
}
.input-class::placeholder {
  color: #c7c7c7;
}
.title {
  color: #333;
}
.ping-zheng {
  height: 4.5rem;
  width: 4.5rem;
  border: 0.05rem solid #eaeaea;
  border-radius: 0.1rem;
}
.add-photo {
  width: 2rem;
  height: 2rem;
  margin: 0;
}
.ping-zheng-img {
//   height: 4.5rem;
//   width: 4.5rem;
  border-radius: 0.1rem;
  margin: 0;
}
.add-photo-text {
  color: #c7c7c7;
  font-size: 0.7rem;
}
.bottom-btn {
    width: 90%;
    height: 2.5rem;
    border-radius: 2rem;
    line-height: 2.5rem;
    text-align: center;
    background: #1eb0fb;
    color: #fff;
    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.bottom-btn2 {
    width: 90%;
    height: 2.5rem;
    border-radius: 2rem;
    line-height: 2.5rem;
    text-align: center;
    border: 0.1rem solid #1eb0fb;
    color: #1eb0fb;
    margin: 0 auto;
    margin-bottom: 1rem;
}
</style>